package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 教师对象 my_teacher
 *
 * @author ruoyi
 * @date 2023-01-28
 */
public class Teacher extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 老师ID
     */
    private Long id;

    /**
     * 老师名字
     */
    @Excel(name = "老师名字")
    private String username;

    /**
     * 老师电话
     */
    @Excel(name = "老师电话")
    private String phone;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 盐值
     */
    @Excel(name = "盐值")
    private String salt;

    /**
     * 密码
     */
    @Excel(name = "密码")
    private String password;

    /**
     * 性别 1是男，0是女
     */
    @Excel(name = "性别 1是男，0是女")
    private Integer sex;

    /**
     * 员工状态 - 1启用，0禁用
     */
    @Excel(name = "员工状态 - 1启用，0禁用")
    private Integer state;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUsername() {
        return username;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getSalt() {
        return salt;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPassword() {
        return password;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getSex() {
        return sex;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getState() {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("username", getUsername())
                .append("phone", getPhone())
                .append("type", getType())
                .append("salt", getSalt())
                .append("password", getPassword())
                .append("sex", getSex())
                .append("state", getState())
                .toString();
    }
}
